home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / point / src / mwindow.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  2.6 KB  |  126 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    windowId ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    xPointMessageId ;
  11. extern int    xMessageId ;
  12. extern int    yPointMessageId ;
  13. extern int    yMessageId ;
  14. extern int    exitFunc() ;
  15.  
  16. #define ALIGN    4
  17. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  18.  
  19. /*    MMI_init 用データ    */
  20.  
  21. /*    ヘッダ    */
  22.  
  23. MMIINIT    initDataMWINDOW = { "MmiInit",   6, 0 } ;
  24.  
  25. /* windowId */
  26.  
  27. static MMIPACKET d001 = {    &windowId,
  28.                             &MJ_BASEOBJ,
  29.                             &MJ_WINDOWL40,
  30.                             OFFSET(WINDOWL40),
  31.                             MS_NONE
  32.                         } ;
  33. static WINDOWL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40,
  34.                              558, 428, 639, 479, 8,15, 9,
  35.                             MS_SRECTL40 | MS_FRAMEL40,
  36.                             NULL,   0,   0,
  37.                                1,  17,   0,   0,
  38.                              109, 100, 640, 480,
  39.                             0,
  40.                             "Point",
  41.                         } ;
  42.  
  43. /* xPointMessageId */
  44.  
  45. static MMIPACKET d002 = {    &xPointMessageId,
  46.                             &windowId,
  47.                             &MJ_MSGL40,
  48.                             OFFSET(MSGL40),
  49.                             MS_NONE
  50.                         } ;
  51. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  52.                              575, 444, 590, 459, 8,15, 8,
  53.                             MS_NONEL40,
  54.                             "x:",
  55.                                2,  16,  16,
  56.                             MS_NONEL40,
  57.                                0,   0
  58.                         } ;
  59.  
  60. /* xMessageId */
  61.  
  62. static MMIPACKET d003 = {    &xMessageId,
  63.                             &windowId,
  64.                             &MJ_MSGL40,
  65.                             OFFSET(MSGL40),
  66.                             MS_NONE
  67.                         } ;
  68. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  69.                              591, 445, 622, 460, 8,15, 8,
  70.                             MS_OPAQUEL40,
  71.                             "0000",
  72.                                2,  16,  16,
  73.                             MS_NONEL40,
  74.                                0,   0
  75.                         } ;
  76.  
  77. /* yPointMessageId */
  78.  
  79. static MMIPACKET d004 = {    &yPointMessageId,
  80.                             &windowId,
  81.                             &MJ_MSGL40,
  82.                             OFFSET(MSGL40),
  83.                             MS_NONE
  84.                         } ;
  85. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  86.                              575, 461, 590, 476, 8,15, 8,
  87.                             MS_NONEL40,
  88.                             "y:",
  89.                                2,  16,  16,
  90.                             MS_NONEL40,
  91.                                0,   0
  92.                         } ;
  93.  
  94. /* yMessageId */
  95.  
  96. static MMIPACKET d005 = {    &yMessageId,
  97.                             &windowId,
  98.                             &MJ_MSGL40,
  99.                             OFFSET(MSGL40),
  100.                             MS_NONE
  101.                         } ;
  102. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  103.                              591, 461, 622, 476, 8,15, 8,
  104.                             MS_OPAQUEL40,
  105.                             "0000",
  106.                                2,  16,  16,
  107.                             MS_NONEL40,
  108.                                0,   0
  109.                         } ;
  110.  
  111. /* NULL */
  112.  
  113. static MMIPACKET d006 = {    NULL,
  114.                             &windowId,
  115.                             &MJ_ICONL40,
  116.                             0,
  117.                             MS_NONE
  118.                         } ;
  119. static ICONL40    d006d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  120.                              560, 430, 571, 441, 8,15, 8,
  121.                             MS_NONEL40,
  122.                             exitFunc,
  123.                             0x0000, 285
  124.                         } ;
  125.  
  126.